﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001339 RID: 4921
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeCityShopRewardScRsp : IMessage<TakeCityShopRewardScRsp>, IMessage, IEquatable<TakeCityShopRewardScRsp>, IDeepCloneable<TakeCityShopRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003E12 RID: 15890
		// (get) Token: 0x0600DC4B RID: 56395 RVA: 0x0024DD6B File Offset: 0x0024BF6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeCityShopRewardScRsp> Parser
		{
			get
			{
				return TakeCityShopRewardScRsp._parser;
			}
		}

		// Token: 0x17003E13 RID: 15891
		// (get) Token: 0x0600DC4C RID: 56396 RVA: 0x0024DD72 File Offset: 0x0024BF72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeCityShopRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E14 RID: 15892
		// (get) Token: 0x0600DC4D RID: 56397 RVA: 0x0024DD84 File Offset: 0x0024BF84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeCityShopRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DC4E RID: 56398 RVA: 0x0024DD8B File Offset: 0x0024BF8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardScRsp()
		{
		}

		// Token: 0x0600DC4F RID: 56399 RVA: 0x0024DD94 File Offset: 0x0024BF94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardScRsp(TakeCityShopRewardScRsp other) : this()
		{
			this.shopId_ = other.shopId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DC50 RID: 56400 RVA: 0x0024DDF8 File Offset: 0x0024BFF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardScRsp Clone()
		{
			return new TakeCityShopRewardScRsp(this);
		}

		// Token: 0x17003E15 RID: 15893
		// (get) Token: 0x0600DC51 RID: 56401 RVA: 0x0024DE00 File Offset: 0x0024C000
		// (set) Token: 0x0600DC52 RID: 56402 RVA: 0x0024DE08 File Offset: 0x0024C008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x17003E16 RID: 15894
		// (get) Token: 0x0600DC53 RID: 56403 RVA: 0x0024DE11 File Offset: 0x0024C011
		// (set) Token: 0x0600DC54 RID: 56404 RVA: 0x0024DE19 File Offset: 0x0024C019
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003E17 RID: 15895
		// (get) Token: 0x0600DC55 RID: 56405 RVA: 0x0024DE22 File Offset: 0x0024C022
		// (set) Token: 0x0600DC56 RID: 56406 RVA: 0x0024DE2A File Offset: 0x0024C02A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003E18 RID: 15896
		// (get) Token: 0x0600DC57 RID: 56407 RVA: 0x0024DE33 File Offset: 0x0024C033
		// (set) Token: 0x0600DC58 RID: 56408 RVA: 0x0024DE3B File Offset: 0x0024C03B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DC59 RID: 56409 RVA: 0x0024DE44 File Offset: 0x0024C044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeCityShopRewardScRsp);
		}

		// Token: 0x0600DC5A RID: 56410 RVA: 0x0024DE54 File Offset: 0x0024C054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeCityShopRewardScRsp other)
		{
			return other != null && (other == this || (this.ShopId == other.ShopId && object.Equals(this.Reward, other.Reward) && this.Level == other.Level && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DC5B RID: 56411 RVA: 0x0024DEC4 File Offset: 0x0024C0C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DC5C RID: 56412 RVA: 0x0024DF4B File Offset: 0x0024C14B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DC5D RID: 56413 RVA: 0x0024DF53 File Offset: 0x0024C153
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DC5E RID: 56414 RVA: 0x0024DF5C File Offset: 0x0024C15C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ShopId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.Reward);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DC5F RID: 56415 RVA: 0x0024DFF0 File Offset: 0x0024C1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DC60 RID: 56416 RVA: 0x0024E078 File Offset: 0x0024C278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeCityShopRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DC61 RID: 56417 RVA: 0x0024E108 File Offset: 0x0024C308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DC62 RID: 56418 RVA: 0x0024E114 File Offset: 0x0024C314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 32U)
					{
						this.ShopId = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 104U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005773 RID: 22387
		private static readonly MessageParser<TakeCityShopRewardScRsp> _parser = new MessageParser<TakeCityShopRewardScRsp>(() => new TakeCityShopRewardScRsp());

		// Token: 0x04005774 RID: 22388
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005775 RID: 22389
		public const int ShopIdFieldNumber = 4;

		// Token: 0x04005776 RID: 22390
		private uint shopId_;

		// Token: 0x04005777 RID: 22391
		public const int RewardFieldNumber = 11;

		// Token: 0x04005778 RID: 22392
		private ItemList reward_;

		// Token: 0x04005779 RID: 22393
		public const int LevelFieldNumber = 13;

		// Token: 0x0400577A RID: 22394
		private uint level_;

		// Token: 0x0400577B RID: 22395
		public const int RetcodeFieldNumber = 10;

		// Token: 0x0400577C RID: 22396
		private uint retcode_;
	}
}
